iT邦幫忙

1

Jboss 重新啟動,竟死當...再也無法運作?

  • 分享至 

  • xImage
  •  

話說某一天晚上,趁著公司無人上線使用軟體,想說將主機重啟動,釋放一點資源...
日常的動作,竟成了噩夢/images/emoticon/emoticon04.gif

重啟後,JBoss服務再也無法正常運動,公司網頁也無法開啟!
沒有改過任何設定,超級多且抓不到重點的LOG 紀錄,好幾千行的描述

關鍵字不知道要下什麼,網路資源少之又少...
還好認識了一位高手,電話連線,不斷來回確認問題,終於在半夜12:26 服務重啟成功,公司網站正常/images/emoticon/emoticon02.gif

這實在太令人難忘,緊張又痛苦的過程,寫下來做紀錄,也盼望有機會幫助到和我一樣不知道自己做錯什麼的IT...

目前 WildFly 啟動失敗 的關鍵錯誤來自這段訊息:

WFLYCTL0082: Failed to create backup copies of configuration file D:\BPM\wildfly-15.0.0.Final\standalone\configuration\standalone-full.xml
Caused by: java.nio.file.AccessDeniedException: D:\BPM\wildfly-15.0.0.Final\standalone\configuration\standalone-full_xml_history\standalone-full.last.xml

這代表 WildFly 在啟動成功之後,嘗試備份設定檔時失敗,導致整個啟動程序拋出例外而失敗。

✅ 總結問題來源

這是典型的 檔案系統權限問題(AccessDeniedException):

WildFly 想把設定檔 standalone-full.xml 備份到 standalone-full_xml_history\standalone-full.last.xml

但 沒有足夠的檔案寫入或覆蓋權限

因此啟動程序在 successfulBoot() 階段中止

🔧 解決方式

請依照下列步驟處理:

  1. 確認 WildFly 執行帳號是否有權限

檢查帳號(例如你是用 Windows 服務啟動,或手動執行)是否有以下資料夾的「讀寫權限」:

D:\BPM\wildfly-15.0.0.Final\standalone\configuration
D:\BPM\wildfly-15.0.0.Final\standalone\configuration\standalone-full_xml_history\

如果有設定檔保護工具、防毒軟體、BitLocker、或只讀屬性,也可能導致此問題。

✅ 建議:以系統管理員身份執行 WildFly,或者直接給 standalone\configuration 路徑下的所有檔案 Full Control 權限。

  1. 刪除 / 重建歷史備份檔

你也可以手動處理那個失敗的檔案:

停止 WildFly。

移除這個檔案(或先備份再移除):

D:\BPM\wildfly-15.0.0.Final\standalone\configuration\standalone-full_xml_history\standalone-full.last.xml

重新啟動 WildFly。

  1. 檢查磁碟是否為唯讀 / 滿了 / 被鎖住

有些情況下,硬碟被設為唯讀模式、配額已滿,或是該檔案在某些程序(如備份軟體)中被鎖定,也會導致這種錯誤。

🔍 WildFly 是「有啟動但無法完成 boot」

從 log 中也看到很多整合和表單流程都有正常執行紀錄,代表:

WildFly 本身其實在運行(有可能是在前一次成功 boot 後未完全關閉再啟動)

但後續的 WildFly reload / 修改 config 時會再次觸發備份程序,所以才報錯

======================================================================
結論:
我刪掉..\BPM\wildfly-15.0.0.Final\standalone\configuration\
裡的這個資料夾standalone-full_xml_history
重啟動JBoss服務 就可以囉!/images/emoticon/emoticon08.gif


圖片
  熱門推薦
圖片
{{ item.channelVendor }} | {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言